<template>
  <view class="index">
    <text class="t1">这里是辅包的页面1</text>
    <nut-button type="primary" @click="goToSub">去辅包页2</nut-button>
  </view>
</template>

<script setup>
import { ref } from 'vue'
import { useUserStore } from '@/stores'
import { useDidShow } from '@tarojs/taro'
import { navigateTo } from '@/router'

const user = useUserStore()
const msg = ref('Hello world')

useDidShow(() => console.log('onShow'))

const goToSub = () => {
  navigateTo({ url: '/pagesub/sub2/index' })
}
</script>
<style lang="scss">

</style>
